<?php
use Phalcon\Security\Random;

$random = new Random();
$randomSalt = $random->hex(10);
return array(
    'queue' => array(
        'httpMethods' => 'GET',
        'pattern' => '/queue/' . $randomSalt,
        'paths' => array(
            'module' => 'queue',
            'controller' => 'Index',
            'action' => 'Index',
            'namespace' => 'Modules\Queue\Controllers',
        ),
    ),
    'adminQueue' => array(
        'httpMethods' => 'GET',
        'pattern' => '/' . ADMIN_PREFIX . '/queue/list_{page:([1-9]{1}[0-9]{0,11})}',
        'paths' => array(
            'module' => 'queue',
            'controller' => 'Admin',
            'action' => 'Index',
            'namespace' => 'Modules\Queue\Controllers',
        ),
    ),
    'adminQueueDelete' => array(
        'httpMethods' => 'GET',
        'pattern' => '/' . ADMIN_PREFIX . '/queue/delete/{id:([0-9a-z]{24})}',
        'paths' => array(
            'module' => 'queue',
            'controller' => 'Admin',
            'action' => 'Delete',
            'namespace' => 'Modules\Queue\Controllers',
        ),
    ),
    'adminQueueResumed' => array(
        'httpMethods' => 'GET',
        'pattern' => '/' . ADMIN_PREFIX . '/queue/resumed_{id:([0-9a-z]{24})}',
        'paths' => array(
            'module' => 'queue',
            'controller' => 'Admin',
            'action' => 'Resumed',
            'namespace' => 'Modules\Queue\Controllers',
        ),
    ),
);
